package com.dudu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dudu.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: 小河
 * @Description:
 * @Date: 2024-07-16 10:50:22
 * @Version: 1.0
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT * FROM user WHERE phone = #{phone}")
    User selectByPhone(@Param("phone") String phone);
}
